<%namespace name="admin_include" file="/admin/base/include.html" />
<%namespace name="include" file="/front/base/include.html" />
<%inherit file="/front/base/breadcrumbbase.html"/>

<%def name="breadcrumb()">
<li><a href="/products/list.html">折扣商品</a><span class="divider">></span></li>
%if category:
<li>${category.name}</li>
%else:
<li>所有商品</li>
%endif
</%def>

<%def name="center()">
<div class="row">
    <div class="span3 no-margin">
        ${include.buyleftmenu()}
    </div>
    <div class="span6 no-margin">
        <ul class="thumbnails" style="margin-top:10px;">
            %for product in products.object_list:
            <li class="span2">
            <p style="height:160px;"><a href="/products/detail/${product.id}.html"><img src="${product.picture}" class="img-polaroid"/></a></p>
            <h5 style="height:38px;overflow:hidden;"><a href="/products/detail/${product.id}.html">${product.name}</a></h5>
            <span class="muted"><del>￥${product.marketprice}</del></span>
            <span class="badge badge-important">￥${product.sellprice}</span>
            </li>
            %endfor
        </ul>
    </div>
</div>
${include.pagination(products)}
</%def>

<%def name="script()">
${admin_include.buyleftmenu()}
</%def>
